package com.neuedu.studentmanage.entity;

import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Spends {
	private Integer cardId;
	private String costPlace;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date times;

	private BigDecimal cost;
	private char type;
	private char status;

	public Integer getCardId() {
		return cardId;
	}

	public void setCardId(Integer cardId) {
		this.cardId = cardId;
	}

	public String getCostPlace() {
		return costPlace;
	}

	public void setCostPlace(String costPlace) {
		this.costPlace = costPlace;
	}

	public Date getTimes() {
		return times;
	}

	public void setTimes(Date times) {
		this.times = times;
	}

	

	public BigDecimal getCost() {
		return cost;
	}

	public void setCost(BigDecimal cost) {
		this.cost = cost;
	}

	public char getType() {
		return type;
	}

	public void setType(char type) {
		this.type = type;
	}

	public char getStatus() {
		return status;
	}

	public void setStatus(char status) {
		this.status = status;
	}

	public Spends() {
		super();
		// TODO Auto-generated constructor stub
	}
	

	public Spends(Integer cardId) {
		super();
		this.cardId = cardId;
	}

	public Spends(Integer cardId, String costPlace, Date times, BigDecimal cost, char type, char status) {
		super();
		this.cardId = cardId;
		this.costPlace = costPlace;
		this.times = times;
		this.cost = cost;
		this.type = type;
		this.status = status;
	}

	@Override
	public String toString() {
		return "Spends [cardId=" + cardId + ", costPlace=" + costPlace + ", times=" + times + ", cost=" + cost
				+ ", type=" + type + ", status=" + status + "]";
	}

	


}
